import request from "@/api/request.js";

//项目信息管理

// /app/project/countProject查询当前登录人项目数量

export const countProject = (data) =>
  request.get("/app/project/countProject", data);

//GET 删除项目
export const delProject = (data) =>
  request.get("/app/project/delProject", data);

//GET 根据projectId查询项目信息
export const getProject = (data) =>
  request.get("/app/project/getProject", data);

//POST 分页查询项目
export const pageProject = (data) =>
  request.post("/app/project/pageProject", data);

//POST 保存项目
export const saveProject = (data) =>
  request.post("/app/project/saveProject", data);

//POST 编辑项目
export const updateProject = (data) =>
  request.post("/app/project/updateProject", data);

//拍摄信息管理
//GET 删除项目拍摄
export const delProjectShooting = (data) =>
  request.get("/app/shooting/delProjectShooting", data);

//GET 根据ProjectId查询项目拍摄
export const getProjectShooting = (data) =>
  request.get("/app/shooting/getProjectShooting", data);

//POST 保存项目拍摄
export const saveProjectShooting = (data) =>
  request.post("/app/shooting/saveProjectShooting", data);

//POST 编辑项目拍摄
export const updateProjectShooting = (data) =>
  request.post("/app/shooting/updateProjectShooting", data);

//POST 批量保存项目拍摄
export const batchSaveProjectShooting = (data) =>
  request.post("/app/shooting/batchSaveProjectShooting", data);

//后期制作管理
//GET 删除后期制作
export const delProjectPostProduction = (data) =>
  request.get("/app/postProduction/delProjectPostProduction", data);

//GET 根据ProjectId查询后期制作
export const getProjectPostProduction = (data) =>
  request.get("/app/postProduction/getProjectPostProduction", data);

//POST 保存后期制作
export const saveProjectPostProduction = (data) =>
  request.post("/app/postProduction/saveProjectPostProduction", data);

//POST 编辑后期制作
export const updateProjectPostProduction = (data) =>
  request.post("/app/postProduction/updateProjectPostProduction", data);

//财务信息管理
//GET 删除财务信息
export const delProjectFinancial = (data) =>
  request.get("/app/financial/delProjectFinancial", data);

//GET 根据ProjectId查询财务信息
export const getProjectFinancial = (data) =>
  request.get("/app/financial/getProjectFinancial", data);

//POST 保存财务信息
export const saveProjectFinancial = (data) =>
  request.post("/app/financial/saveProjectFinancial", data);

//POST 编辑财务信息
export const updateProjectFinancial = (data) =>
  request.post("/app/financial/updateProjectFinancial", data);
